Skip to content

Commit

Permalink
fix: typo in api call
Browse files Browse the repository at this point in the history
  • Loading branch information
RupaakSrinivas committed Jan 4, 2024
1 parent f669372 commit 06f4b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/GetUserName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const GetUsername: React.FC = () => {
const updateUserName = (): void => {
console.log("in update username");
signIn(uuid, regNo, userName).then((data) => {
if (data.access_token) {
if (data.token) {
console.log(data);
updateUsername(userName);
updateToken(data.access_token);
Expand Down

0 comments on commit 06f4b2f

Please sign in to comment.