Skip to content

Commit

Permalink
chore: Implement geoblock for swaps on Commerce widget (#2519)
Browse files Browse the repository at this point in the history
  • Loading branch information
luads authored Feb 4, 2025
1 parent e1ab53d commit 6396cbd
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 234 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useHandover } from '../../lib/hooks/useHandover';
type GeoblockLoaderParams = {
widget: React.ReactNode;
serviceUnavailableView: React.ReactNode;
checkout: Checkout,
checkout?: Checkout,
};

export function GeoblockLoader({
Expand All @@ -23,6 +23,8 @@ export function GeoblockLoader({
const [available, setAvailable] = useState(false);

useEffect(() => {
if (!checkout) return;

(async () => {
try {
showLoader({ text: t('views.LOADING_VIEW.text') });
Expand Down
Loading

0 comments on commit 6396cbd

Please sign in to comment.