Skip to content

Commit 3118a2a

Browse files
committed
refactor: rename variable protectedDatas to protectedDataItems for clarity
1 parent baeda5c commit 3118a2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/views/contact/sendMessage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ export default function SendMessage() {
4242
queryFn: async () => {
4343
const dataProtectorCore = await getDataProtectorCoreClient();
4444
// TODO check protectedDataList before
45-
const protectedDatas = await dataProtectorCore.getProtectedData({
45+
const protectedDataItems = await dataProtectorCore.getProtectedData({
4646
protectedDataAddress: protectedDataAddress,
4747
});
48-
return protectedDatas[0];
48+
return protectedDataItems[0];
4949
},
5050
enabled: !!protectedDataAddress,
5151
refetchOnWindowFocus: true,

src/views/myData/protectedData.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ export default function ProtectedData() {
5757
}
5858
const dataProtectorCore = await getDataProtectorCoreClient();
5959
// TODO check protectedDataList before
60-
const protectedDatas = await dataProtectorCore.getProtectedData({
60+
const protectedDataItems = await dataProtectorCore.getProtectedData({
6161
protectedDataAddress: protectedDataAddress,
6262
owner: userAddress,
6363
});
64-
return protectedDatas[0];
64+
return protectedDataItems[0];
6565
},
6666
enabled: !!userAddress && !!protectedDataAddress,
6767
refetchOnWindowFocus: true,

0 commit comments

Comments
 (0)