Commit 50fd53a0 authored by Harrison Healey's avatar Harrison Healey Committed by Christopher Speller

Fix type of filePublicLink state (#988)

parent 98a375ce
......@@ -127,13 +127,13 @@ function storeFilesIdsForPost(state: Dictionary<string[]>, post: Post) {
};
}
function filePublicLink(state: string | null = null, action: GenericAction) {
function filePublicLink(state: {link: string} = {link: ''}, action: GenericAction) {
switch (action.type) {
case FileTypes.RECEIVED_FILE_PUBLIC_LINK: {
return action.data;
}
case UserTypes.LOGOUT_SUCCESS:
return '';
return {link: ''};
default:
return state;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment