Save comment sort per user rather than per contract
This commit is contained in:
		
							parent
							
								
									e127f9646a
								
							
						
					
					
						commit
						26f04fb04a
					
				|  | @ -81,7 +81,7 @@ const CommentsTabContent = memo(function CommentsTabContent(props: { | ||||||
|   const tips = useTipTxns({ contractId: contract.id }) |   const tips = useTipTxns({ contractId: contract.id }) | ||||||
|   const comments = useComments(contract.id) ?? props.comments |   const comments = useComments(contract.id) ?? props.comments | ||||||
|   const [sort, setSort] = usePersistentState<'Newest' | 'Best'>('Best', { |   const [sort, setSort] = usePersistentState<'Newest' | 'Best'>('Best', { | ||||||
|     key: `contract-${contract.id}-comments-sort`, |     key: `contract-comments-sort`, | ||||||
|     store: storageStore(safeLocalStorage()), |     store: storageStore(safeLocalStorage()), | ||||||
|   }) |   }) | ||||||
|   const me = useUser() |   const me = useUser() | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user