Skip to content

Commit 92c25a4

Browse files
committed
chore: removes demo code
1 parent 0f1b670 commit 92c25a4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/ramps-controller/src/RampsController.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,11 @@ export class RampsController extends BaseController<
359359
cacheKey,
360360
async () => {
361361
const result = await this.messenger.call('RampsService:getGeolocation');
362-
// DEMO: Append random suffix to show when fresh data is fetched vs cached
363-
const randomSuffix = Math.random().toString(36).substring(2, 8);
364-
return `${result}-${randomSuffix}`;
362+
return result;
365363
},
366364
options,
367365
);
368366

369-
// Also update the dedicated geolocation field for backwards compatibility
370367
this.update((state) => {
371368
state.geolocation = geolocation;
372369
});

0 commit comments

Comments
 (0)