MAVRICK-1 / e-commerce_website

MIT License
78 stars 125 forks source link

fix: loading state if location permission not granted #350

Closed SiddhiT28 closed 1 month ago

SiddhiT28 commented 1 month ago

Description

The modifications I've implemented ensure that the product loads regardless of whether location permission is provided.

Motivation and Context

The change is required to solve a significant user experience issue. Without this modification, if a user does not grant location permission, the page would remain in a perpetual loading state, preventing interaction with the product. This could lead to frustration and potentially cause users to abandon the site.

This solve this #189 bug

How Has This Been Tested?

I have conducted tests under both conditions—when location permission is provided and when it is not—and the code functions correctly in each scenario.

Types of changes

Checklist:

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nestondc ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 4:10pm
nestondcshop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 4:10pm
MAVRICK-1 commented 1 month ago

@SiddhiT28 map of functionality won't working , if you follow this approach