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