Skip to content

Commit

Permalink
feat: if value matches operators $user_id, $organization_id, $clientI…
Browse files Browse the repository at this point in the history
…d will return from localStorage
  • Loading branch information
frankpagan committed Jan 16, 2024
1 parent ec73ce0 commit e4bb41a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/getValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ const getValue = (element) => {
}
}

if (value === '$user_id')
value = localStorage.getItem('user_id')
else if (value === '$organization_id')
value = localStorage.getItem('organization_id')
else if (value === '$clientId')
value = localStorage.getItem('clientId')
return value;
};

Expand Down

0 comments on commit e4bb41a

Please sign in to comment.