mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 03:42:10 +03:00
avoiding notification crash by making metadata check more redundant
This commit is contained in:
parent
414e682c04
commit
0231fc5fb7
@ -61,7 +61,7 @@ const PostDisplayView = ({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (post) {
|
if (post) {
|
||||||
const _tags = post.json_metadata ? post.json_metadata.tags : [];
|
const _tags = get(post.json_metadata, 'tags', []);
|
||||||
if (post.category && _tags[0] !== post.category) {
|
if (post.category && _tags[0] !== post.category) {
|
||||||
_tags.splice(0, 0, post.category);
|
_tags.splice(0, 0, post.category);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user