Skip to content

Commit

Permalink
skip migration is personalDetails key is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkiWines committed Mar 24, 2021
1 parent 07cd70c commit 1fa1e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/migrations/ReformatTimezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function () {
callback: (myPersonalDetails) => {
Onyx.disconnect(connectionID);

if (_.isUndefined(myPersonalDetails)) {
if (_.isUndefined(myPersonalDetails) || _.isEmpty(myPersonalDetails)) {
console.debug('[Migrate Onyx] Skipped migration ReformatTimezone: No myPersonalDetails key found');
return resolve();
}
Expand Down

0 comments on commit 1fa1e20

Please sign in to comment.