Fix double call history & adding contact from history (#231)

This commit is contained in:
Dillon Skaggs authored and GitHub committed 2021-05-20 23:54:01 +02:00
1 parent 488c8df5cb
commit 2411c39b95
6 files changed
+12 -6

No files matched your search

@@ -72,10 +72,10 @@ export const DialerHistory = ({ calls }) => {
/>
<IconButton onClick={() => handleCall(call.receiver)}>{<PhoneIcon />}</IconButton>
{getDisplayByNumber(call.transmitter) === call.transmitter && (
{getDisplayByNumber(call.receiver) === call.receiver && (
<IconButton
onClick={() =>
history.push(`/contacts/-1?addNumber=${call.transmitter}&referal=/phone/contacts`)
history.push(`/contacts/-1?addNumber=${call.receiver}&referal=/phone/contacts`)
}
>
<PersonAddIcon />