// Error boundary around the map. Prevents a single deck.gl / three.js crash // from whitescreening the whole app — shows a minimal fallback with a reload. class MapErrorBoundary extends React.Component { constructor(props) { super(props); this.state = { hasError: false, error: null }; } static getDerivedStateFromError(error) { return { hasError: true, error: error }; } componentDidCatch(error, info) { // Keep the console signal — don't swallow silently console.error('[MapErrorBoundary]', error, info); } render() { if (this.state.hasError) { return (
MAP RENDERER CRASHED
Something went wrong rendering the map. Your currency preferences are safe.
); } return this.props.children; } } window.MapErrorBoundary = MapErrorBoundary;