Skip to content

Commit

Permalink
Merge pull request #10954 from brave/desktop_sync_warning_fix_for_new…
Browse files Browse the repository at this point in the history
…_chain

Do not show sync warning when creating new chain on desktop
  • Loading branch information
AlexeyBarabash authored Nov 10, 2021
2 parents 61d0f3d + 2ac3f6b commit abb44e7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions browser/resources/settings/brave_sync_page/brave_sync_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ Polymer({
},

handleSyncCodeDialogDone_: function (e) {
const messageText = this.i18n('braveSyncFinalSecurityWarning')
const shouldProceed = confirm(messageText)
if (!shouldProceed) {
return;
if (this.syncCodeDialogType_ === 'input') {
const messageText = this.i18n('braveSyncFinalSecurityWarning')
const shouldProceed = confirm(messageText)
if (!shouldProceed) {
return
}
}

this.submitSyncCode_()
Expand Down

0 comments on commit abb44e7

Please sign in to comment.