MCPcopy Create free account
hub / github.com/dailydotdev/apps / readBonesGiven

Function readBonesGiven

packages/shared/src/features/patchy/patchyBone.ts:12–15  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

10const bonesGivenKey = (userId: string) => `patchy_bones_given:${userId}`;
11
12const readBonesGiven = (userId: string): number => {
13 const count = Number(storageWrapper.getItem(bonesGivenKey(userId)));
14 return Number.isFinite(count) && count > 0 ? count : 0;
15};
16
17interface UsePatchyBone {
18 // The day's free bone is still there.

Callers 1

usePatchyBoneFunction · 0.85

Calls 1

bonesGivenKeyFunction · 0.85

Tested by

no test coverage detected