src/views/UserInformation/LocationListItem.js
//Changes the color of the heart and saves favourite
Changes the color of the heart and saves favourite
Changes the color of the heart and saves favourite
changeColor(value) {
        this.setState({['liked']: value});
        if (value === true) {
            this.saveToFavorites();
        } else {
            this.deleteFromFavorites();
        }
    }
changeColor ( value ) { this . setState ( { [ 'liked' ] : value } ) ; if ( value === true ) { this . saveToFavorites ( ) ; } else { this . deleteFromFavorites ( ) ; } }
Changes the color of the heart and saves favourite
Changes the color of the heart and saves favourite