mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-03 11:40:44 +03:00
defaulting nsfw to warn, fixed modal not appearing issue
This commit is contained in:
parent
ca5437bacc
commit
e0dd6f8ed3
@ -501,7 +501,7 @@ export const getSettings = async () => {
|
||||
notification: true,
|
||||
server: '',
|
||||
upvotePercent: '1',
|
||||
nsfw: '0',
|
||||
nsfw: '1',
|
||||
followNotification: true,
|
||||
voteNotification: true,
|
||||
commentNotification: true,
|
||||
@ -668,8 +668,8 @@ export const getStorageType = async () => {
|
||||
export const getVersionForWelcomeModal = async () => {
|
||||
try {
|
||||
const application = await getItemFromStorage(APPLICATION_SCHEMA);
|
||||
if (application.versionForWelcomeModal) {
|
||||
return parseFloat(application.versionForWelcomeModal);
|
||||
if (application && application.versionForWelcomeModal) {
|
||||
return parseFloat(application.versionForWelcomeModal) || 0;
|
||||
}
|
||||
return 0;
|
||||
} catch (error) {
|
||||
|
@ -57,7 +57,7 @@ const initialState = {
|
||||
voteNotification: true,
|
||||
},
|
||||
upvotePercent: 1,
|
||||
nsfw: 'Always show',
|
||||
nsfw: '1',
|
||||
pin: null,
|
||||
isPinCodeOpen: true,
|
||||
isRenderRequired: false,
|
||||
|
Loading…
Reference in New Issue
Block a user