diff --git a/lib/OnyxUtils.ts b/lib/OnyxUtils.ts index 5f22b964..a5055cd1 100644 --- a/lib/OnyxUtils.ts +++ b/lib/OnyxUtils.ts @@ -395,7 +395,7 @@ function isCollectionKey(key: OnyxKey): key is CollectionKeyBase { } function isCollectionMemberKey(collectionKey: TCollectionKey, key: string, collectionKeyLength: number): key is `${TCollectionKey}${string}` { - return Str.startsWith(key, collectionKey) && key.length > collectionKeyLength; + return key.startsWith(collectionKey) && key.length > collectionKeyLength; } /**