Skip to content

Commit

Permalink
fix: use default empty object in setInstanceData
Browse files Browse the repository at this point in the history
Without it, we risk destructuring an undefined value
  • Loading branch information
acezard committed Feb 26, 2024
1 parent 5099b39 commit 44b12fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/login/LoginScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const LoginSteps = ({
* @param {{ emailVerifiedCode?: string }} [options] - The optional second parameter object with an optional `emailVerifiedCode` property.
* @returns {Promise<void>} A promise that resolves to void.
*/
async ({ instance, fqdn }, { emailVerifiedCode }) => {
async ({ instance, fqdn }, { emailVerifiedCode } = {}) => {
if (await NetService.isOffline())
NetService.handleOffline(routes.authenticate)

Expand Down

0 comments on commit 44b12fb

Please sign in to comment.