 
     handleShipChange: (e) ->
       ship_id = parseInt(e.target.value)
-      return unless ship_id != NaN
+      return if ship_id is NaN
       # Save secretary config
       @setState
         notifySecretary: ship_id
       config.set('plugin.secretary.ship', ship_id)
-      # Update secretary voice
-      if ship_id
+      # Update notify config
+      if ship_id > 0
         @updateNotifyConfig(ship_id)
       else
         @updateNotifyConfig(@state.fleetSecretary)

            <p>当前秘书舰：{ if @state.fleetSecretary then window.$ships[@state.fleetSecretary]?.api_name else "未知" }</p>
          </Col>
        </Grid>
        <div className="divider">
          <h5>通知试听</h5>
          <hr />
        </div>
        <Grid>
          <Col xs=4>
            <Button bsStyle='danger' style={width: '100%'} onClick={@handleAudition.bind(this, 'construction')}>建造</Button>
          </Col>
          <Col xs=4>
            <Button bsStyle='warning' style={width: '100%'} onClick={@handleAudition.bind(this, 'repair')}>入渠</Button>
          </Col>
          <Col xs=4>
            <Button bsStyle='info' style={width: '100%'} onClick={@handleAudition.bind(this, 'expedition')}>远征</Button>
          </Col>
        </Grid>
      </div>

    handleAudition: (type) ->
      switch type
        when 'construction'
          notify "Construction notification",
            type: 'construction'
        when 'expedition'
          notify "Expedition notification",
            type: 'expedition'
        when 'repair'
          notify "Repair notification",
            type: 'repair'

    handleRefresh: () ->
      # Reset server nonce
      SERVER_NONCE = Math.floor(Math.random() * SERVERS.length)
      console.log(SERVER_NONCE)
      # Update notify config
      if @state.notifySecretary > 0
        @updateNotifyConfig(@state.notifySecretary)
      else
        @updateNotifyConfig(@state.fleetSecretary)

    render: ->
      <div>
        <link rel="stylesheet" href={join(relative(ROOT, __dirname), 'assets', 'secretary.css')} />

        <div className="divider">
          <h5>通知秘书</h5>
          <hr />
