Skip to content

Commit

Permalink
fix: #97
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui committed Aug 8, 2019
1 parent 3d055e1 commit ccf2c97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/InjectedComponents/NotSetupYetPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ const useNotSetUpYetStyles = makeStyles({
},
})
export function NotSetupYetPrompt() {
const id = useLastRecognizedIdentity().identifier
const id = GetContext() !== 'options' ? useLastRecognizedIdentity().identifier : null
const styles = useNotSetUpYetStyles()
const button = (
<Button
onClick={() => {
if (GetContext() === 'options') {
location.hash = '/welcome'
} else Services.Welcome.openWelcomePage(id)
} else if (id) {
Services.Welcome.openWelcomePage(id)
}
}}
color="primary"
size="small">
Expand Down

0 comments on commit ccf2c97

Please sign in to comment.