mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-28 05:52:49 +03:00
edit-account: fixes bug with updating a photo
This commit is contained in:
parent
ba48cfba21
commit
7ee6f46593
@ -66,6 +66,7 @@ export default class SceneEditAccount extends React.Component {
|
||||
}
|
||||
|
||||
const cid = json.data.ipfs.replace("/ipfs/", "");
|
||||
const url = Strings.getCIDGatewayURL(cid);
|
||||
await Actions.updateViewer({
|
||||
data: {
|
||||
photo: Strings.getCIDGatewayURL(cid),
|
||||
@ -76,7 +77,7 @@ export default class SceneEditAccount extends React.Component {
|
||||
|
||||
await this.props.onRehydrate();
|
||||
|
||||
this.setState({ changingAvatar: false });
|
||||
this.setState({ changingAvatar: false, photo: url });
|
||||
};
|
||||
|
||||
_handleSaveBio = async (e) => {
|
||||
|
Loading…
Reference in New Issue
Block a user