@@ -17,7 +17,7 @@ import VerificationListener from './VerificationListener';
1717import './styles.scss' ;
1818
1919export default function Security ( {
20- usermfa, getUser2fa , updateUser2fa, updateUserDice, getNewDiceConnection,
20+ usermfa, updateUser2fa, updateUserDice, getNewDiceConnection,
2121 getDiceConnection, tokenV3, handle, emailAddress,
2222} ) {
2323 const [ setupStep , setSetupStep ] = useState ( - 1 ) ;
@@ -123,11 +123,6 @@ export default function Security({
123123 }
124124 } ;
125125
126- const finishSetup = ( ) => {
127- getUser2fa ( userId , tokenV3 ) ;
128- closeSetup ( ) ;
129- } ;
130-
131126 useInterval ( verifyConnection , setupStep === 1 && isConnVerifyRunning ? 5000 : null ) ;
132127
133128 const setupStepNodes = [
@@ -219,7 +214,7 @@ export default function Security({
219214 leftButtonName = "Cancel"
220215 leftButtonClick = { closeSetup }
221216 rightButtonName = "Finish"
222- rightButtonClick = { finishSetup }
217+ rightButtonClick = { closeSetup }
223218 >
224219 < div styleName = "step-body" >
225220 < div styleName = "step-title" >
@@ -245,7 +240,7 @@ export default function Security({
245240 leftButtonName = "Cancel"
246241 leftButtonClick = { closeSetup }
247242 rightButtonName = "Finish"
248- rightButtonClick = { finishSetup }
243+ rightButtonClick = { closeSetup }
249244 >
250245 < div styleName = "step-body" >
251246 < div styleName = "step-title-container" >
@@ -320,9 +315,12 @@ export default function Security({
320315 < div styleName = "info-first-line" >
321316 DICE ID Authenticator App
322317 </ div >
323- < div styleName = "info-second-line" >
318+ < div styleName = "info-second-line dice-info " >
324319 DICE ID authentication application
325320 </ div >
321+ < div styleName = "info-second-line dice-info-mobile" >
322+ { diceChecked ? 'DICE ID Authenticator is enabled.' : 'Please set up DICE ID Authenticator from your desktop device' }
323+ </ div >
326324 </ div >
327325 { diceChecked
328326 ? (
@@ -359,7 +357,6 @@ export default function Security({
359357
360358Security . propTypes = {
361359 usermfa : PT . shape ( ) . isRequired ,
362- getUser2fa : PT . func . isRequired ,
363360 updateUser2fa : PT . func . isRequired ,
364361 updateUserDice : PT . func . isRequired ,
365362 getNewDiceConnection : PT . func . isRequired ,
0 commit comments