From e4bb41a47350d97c64677f68f0d28b356e981122 Mon Sep 17 00:00:00 2001 From: frankpagan Date: Tue, 16 Jan 2024 15:26:53 -0500 Subject: [PATCH] feat: if value matches operators $user_id, $organization_id, $clientId will return from localStorage --- src/getValue.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/getValue.js b/src/getValue.js index 1b13272..b616afe 100644 --- a/src/getValue.js +++ b/src/getValue.js @@ -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; };