Skip to content

Commit d1df78a

Browse files
committed
Provided default value for time zone
Covers case when a user does not have it defined in their mailbox settings. Fixes #60
1 parent cd5e181 commit d1df78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/graph-tutorial/src/AuthProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export default function withAuthProvider<T extends React.Component<AuthComponent
142142
user: {
143143
displayName: user.displayName,
144144
email: user.mail || user.userPrincipalName,
145-
timeZone: user.mailboxSettings.timeZone,
145+
timeZone: user.mailboxSettings.timeZone || 'UTC',
146146
timeFormat: user.mailboxSettings.timeFormat
147147
},
148148
error: null

0 commit comments

Comments
 (0)