Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
🆘 error after error fixed thank god
Browse files Browse the repository at this point in the history
  • Loading branch information
Tdanks2000 committed Dec 18, 2022
1 parent 50e8476 commit 518c0d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Info/Top/SubOrDub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { helpers } from "../../../../utils";
const SubOrDub = ({ subOrDub, setDub, dub }) => {
const handleDub = async () => {
try {
await helpers.setSetting("dub", JSON.stringify(!dub));
await helpers.setSetting("dub", Boolean(!dub));
setDub((prev) => !prev);
} catch (error) {
console.log({
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Info/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const InfoScreen = ({ route }) => {

const { data } = useQuery(
["Info-Data", dub, id],
() => api.getInfo(id, dub),
() => api.getInfo(id, Boolean(dub)),
{
cacheTime: 0,
}
Expand Down

0 comments on commit 518c0d9

Please sign in to comment.