Skip to content

Commit

Permalink
updated account dropin 2
Browse files Browse the repository at this point in the history
  • Loading branch information
KostiantynFandeliuk committed Nov 28, 2024
1 parent f7f40a0 commit 566b632
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RegionTransform } from '../../data/models';

export declare const getRegions: (countryCode: string) => Promise<RegionTransform[] | [
]>;
export declare const getRegions: (countryCode: string) => Promise<RegionTransform[] | []>;
//# sourceMappingURL=getRegions.d.ts.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ import{events as b}from"@dropins/tools/event-bus.js";import{FetchGraphQL as C}fr
}
}
}
`,W=async t=>{const n=`_account_regions_${t}`,e=sessionStorage.getItem(n);return e?JSON.parse(e):await s(q,{method:"GET",cache:"no-cache",variables:{countryCode:t}}).then(r=>{var i;if((i=r.errors)!=null&&i.length)return f(r.errors);const o=U(r);return sessionStorage.setItem(n,JSON.stringify(o)),o}).catch(_)},V=`
`,W=async t=>{const n=`_account_regions_${t}`,e=sessionStorage.getItem(n);return e?(sessionStorage.removeItem(n),JSON.parse(e)):await s(q,{method:"GET",cache:"no-cache",variables:{countryCode:t}}).then(r=>{var i;if((i=r.errors)!=null&&i.length)return f(r.errors);const o=U(r);return sessionStorage.setItem(n,JSON.stringify(o)),o}).catch(_)},V=`
mutation UPDATE_CUSTOMER_ADDRESS($id: Int!,
$input: CustomerAddressInput) {
updateCustomerAddress(id:$id, input:$input) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/__dropins__/storefront-account/reload
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"at":1732795336523}
{"at":1732796087749}

0 comments on commit 566b632

Please sign in to comment.