@nuskin/ns-shop 7.4.0 → 7.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-shop",
3
- "version": "7.4.0",
3
+ "version": "7.4.1",
4
4
  "description": "The description that will amaze and astound your audience when they read it",
5
5
  "main": "src/shop.js",
6
6
  "scripts": {
@@ -3,7 +3,7 @@ import axios from 'axios'
3
3
 
4
4
  const downConvertAgreedToTerms = async (sapId) => {
5
5
  let retVal = true;
6
- const oktaTokens = sessionStorage.getItem("oktaTokens");
6
+ const oktaTokens = sessionStorage.getItem("oktaTokens") || '{}';
7
7
  const { accessToken } = JSON.parse(oktaTokens);
8
8
 
9
9
  if (accessToken) {
@@ -23,7 +23,7 @@ const downConvertAgreedToTerms = async (sapId) => {
23
23
 
24
24
  const setDownConvertAgreedToTerms = async (sapId) => {
25
25
  let succeeded = true
26
- const oktaTokens = sessionStorage.getItem("oktaTokens");
26
+ const oktaTokens = sessionStorage.getItem("oktaTokens") || '{}';
27
27
  const { accessToken } = JSON.parse(oktaTokens);
28
28
 
29
29
  if (accessToken) {